package engine.newUi
{
	import engine.control.loading.NxLoading;
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	
	import newx.com.control.text.NxLabel;
	
	public class FamilyDinnerUI extends BaseUI
	{
		public var picBg			:MovieClip
		public var loading			:NxLoading;
		private var _myLogic		:FamilyDinnerLogic;
		private static var _self	:FamilyDinnerUI;
		public function FamilyDinnerUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		public static function getInstance():FamilyDinnerUI
		{
			if(_self == null)
			{
				_self	=	new FamilyDinnerUI();
			}
			return _self;
		}
		
		override public function Init():void
		{
			_myLogic	=	FamilyDinnerLogic.getInstance();
		}
		override protected function AfterHide():void
		{
			_myLogic.removeListener();
		}
		override protected function BeforeShow():void
		{
			_myLogic.addListener();
		}
	}
}